﻿<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage_New.master" Title="新增结算单明细信息" AutoEventWireup="true" CodeBehind="AddSubsidyDetail.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportHospital.AddSubsidyDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <%--<div id="tabnav">
        <ul>
            <li class="active">
                <a href="javascript:void(0)" >未发放补助</a>
            </li>
              <li> <a href="hospitalPending.aspx" >未审核补助</a></li>
              <li> <a href="hospitalUnPending.aspx" >待审核补助</a></li>
              <li> <a href="hospitalPended.aspx" >审核补助</a></li>
            <li> <a href="HospitalAmountSubsidyed.aspx" >医院已确认</a></li> 
        </ul>
    </div>--%>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                           
                            <td align="right">
                                医院名称：</td>
                            <td align="left">
                                <asp:Label ID="labHospitalname" runat="server" Text=""></asp:Label>
                                <asp:Label ID="labSubsidyID" runat="server" Visible="false"></asp:Label>
                            </td>
                            <td align="right">
                            <asp:Label ID="labPlanTime" runat="server" Text="统计时间："></asp:Label>
                            &nbsp;</td>
                            <td align="left">
                            <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                Width="63px"></asp:TextBox>-<asp:TextBox 
                                ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                    Width="63px"></asp:TextBox>
                            </td>
                            
                        </tr>
                        </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" onclick="btnQuery_Click" 
                        TabIndex="99" />
                   
                </td>
            </tr>
           
        </table>
 
    </div>
   <asp:GridView ID="gvwDetail" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！"  >
        
        <Columns>
         <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server"/>
                   </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField> 
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
                <asp:BoundField HeaderText="所属地区" DataField="PAreaname" />
           <asp:TemplateField HeaderText="医院名称">
           
                <ItemTemplate>
                <%# Eval("PHospitalName")%>
                     <%-- <a href="hospitalAmountSubsidyDetailUn.aspx?id2=<%# Eval("PHospitalName")%>&id=1&PEssentialDrugsAmount=<%# Eval("PEssentialDrugsAmount")%>&PAreaname=<%# Eval("PAreaname")%>&PrescriptionID==<%# Eval("PrescriptionID")%>&PAreaId=<%# Eval("PAreaId")%>&PHospitalId=<%# Eval("PHospitalId")%>">
                          <asp:Label ID="Label1" runat="server" Text='<%# Eval("PHospitalName")%>'></asp:Label></a>--%>
                </ItemTemplate>
            </asp:TemplateField> 
            <asp:BoundField DataField="PtotalAmount" HeaderText="处方单总金额"  ReadOnly="True"/>  
               <asp:BoundField DataField="PSubsidiesAmount" HeaderText="应补贴金额"  ReadOnly="True"/>
               <asp:BoundField DataField="PSbsidyAmount" HeaderText="已补贴金额"  ReadOnly="True"/>
             <asp:TemplateField HeaderText="补助金额">
                <ItemTemplate>
                    <asp:TextBox ID="txtCount" runat="server" Width="100px" oncontextmenu="javascript:return false;"   
                        onblur="javascript:return check_isdecimal();" onkeydown="javascript:return check_isdecimal();"
                        MaxLength="10" ToolTip="填写医院补贴"    ></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
               <asp:TemplateField HeaderText="备注">
                <ItemTemplate>
                    <asp:TextBox ID="txtBZ" runat="server" Width="120px" Height="40px" TextMode="MultiLine" oncontextmenu="javascript:return false;" 
                         ToolTip="填写补贴备注" ></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField> 
         <asp:BoundField DataField="PAreaId" HeaderText="地区编号"  ReadOnly="True" HeaderStyle-CssClass="hide" ItemStyle-CssClass="hide"/>  
            <asp:BoundField DataField="PHospitalId" HeaderText="医院编号"  ReadOnly="True" HeaderStyle-CssClass="hide" ItemStyle-CssClass="hide"/> 
              <asp:BoundField DataField="Paddtime" HeaderText="最早开方时间"  ReadOnly="True" HeaderStyle-CssClass="hide" ItemStyle-CssClass="hide"/> 
              <asp:BoundField DataField="PrescriptionID" HeaderText="处方单编号"  ReadOnly="True" HeaderStyle-CssClass="hide" ItemStyle-CssClass="hide"/>  
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
            onpagechanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> 选择需要发放补助的医院，在补助金额输入框中输入金额点击“保存” 按钮进行保存。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        &nbsp;
        <hz:HzButton ID="btnFinish" runat="server" Text="发放补助" OnClick="btnFinish_Click"
            CssClass="btn" ToolTip="保存发放补助金额" />
                    <input type="button" id="btnIn" value="返回" class="btn" onclick="javascript:history.go(-1);" /></div>
</asp:Content>
